package com.mengtian_tech.smart_lab.entity.dict;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * 年级字典表
 *
 */
@Entity
@Table(name = "dict_grade", schema = "")
@SuppressWarnings("serial")
public class DictGrade implements java.io.Serializable {
	/**主键*/
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=36)
	private java.lang.String id; 
	
	/**创建日期*/
	private java.util.Date createDate;
	
	/** 学年  */
	@Column(name="year")
	private java.lang.String year;
	
	/** 班级名称 */
	@Excel(name="班级")
	@Column(name="class_name")
	private String  className;
	
	/** 班级编号  */
	@Column(name="class_no")
	private String classNo;
	
	@ManyToOne
	@JoinColumn(name="college_id")
	private DictCollegeEntity college;
	
	/** 班级信息  */
	@ManyToOne
	@JoinColumn(name="major_id")
	private DictMajorEntity major;
	
	
	
	/**是否删除*/
	private java.lang.Integer deleted;

	public java.lang.String getId() {
		return id;
	}

	public void setId(java.lang.String id) {
		this.id = id;
	}

	public java.util.Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(java.util.Date createDate) {
		this.createDate = createDate;
	}

	public java.lang.String getYear() {
		return year;
	}

	public void setYear(java.lang.String year) {
		this.year = year;
	} 

	public java.lang.Integer getDeleted() {
		return deleted;
	}

	public void setDeleted(java.lang.Integer deleted) {
		this.deleted = deleted;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getClassNo() {
		return classNo;
	}

	public void setClassNo(String classNo) {
		this.classNo = classNo;
	}

	public DictCollegeEntity getCollege() {
		return college;
	}

	public void setCollege(DictCollegeEntity college) {
		this.college = college;
	}

	public DictMajorEntity getMajor() {
		return major;
	}

	public void setMajor(DictMajorEntity major) {
		this.major = major;
	}

	@Override
	public String toString() {
		return this.className;
	} 
	 
}
